package com.ruoyi.pay.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.pay.entity.Commodity;
import com.ruoyi.pay.entity.RefundInfo;

/**
 * 订单退款Service接口
 * 
 * @author sparkling
 * @date 2024-03-06
 */
public interface RefundInfoService extends IService<RefundInfo> {

    /**
     * 创建退款订单
     * @param orderNo 订单号
     * @param reason 退款原因
     * @return
     */
    RefundInfo createRefundInfoForAliPay(String orderNo, String reason);

    /**
     * 更新退款订单
     * @param refundNo 退款单号
     * @param refundId 支付平台退款单号
     * @param body 退款内容
     * @param refundStatus 退款类型
     */
    void updateRefundForAliPay(String refundNo,String refundId, String body, String refundStatus);
}
